/*河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
*/
package cn.javaxc.crm.action.sale;
import java.io.*;
import java.util.*;
import java.sql.*;
import cn.javaxc.model.base.SQL;
import cn.javaxc.model.base.SQLList;
import cn.javaxc.model.base.SQLMap;
import cn.javaxc.model.base.SQLParam;
import cn.javaxc.model.page.BatisPage;
import cn.javaxc.mvcwork.controller.web.TreeBean;
import cn.javaxc.mvcwork.util.common.CommonUtil;
import cn.javaxc.mvcwork.util.common.MapListUtil;
import cn.javaxc.mvcwork.util.helper.FrameHelper;
import cn.javaxc.mvcwork.util.helper.TreeTableHelper;
import org.springframework.beans.factory.annotation.Autowired;
import cn.javaxc.system.action.base.BaseAction;
import cn.javaxc.crm.mapper.sale.PriceMapper;
public class PriceAction extends BaseAction
{
    @Autowired(required=false)
	private PriceMapper mapper;
    /**
    产品选择
    */
    
    public Map productChoce() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        
        
        SQLList<SQLMap> s_class=mapper.s_class(params);
        result.put("s_class", s_class);
        
        
        params.def("CMIDproduct_classid",-1);
        SQLList<SQLMap> s_higher=mapper.s_higher(params);
        result.put("s_higher", s_higher);
        
        return result;
    }
    /**
    */
    
    public Object s_product() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> product=mapper.product(params,pagination);
        product.setPagedListInfo(pagination);
        result.put("product", product);
        
        return product;
    }
    /**
    价格体系
    */
    
    public Map priceSystem() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_price=mapper.s_price(params);
        result.put("s_price", s_price);
        
        return result;
    }
    /**
    责任选择
    */
    
    public Map responsibilityChoice2() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_demand=mapper.s_demand(params);
        result.put("s_demand", s_demand);
        
        
        
        return result;
    }
    /**
    付款账号选择
    */
    
    public Map paymentAccountChoice() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_bank_account=mapper.s_bank_account(params);
        result.put("s_bank_account", s_bank_account);
        
        return result;
    }
    /**
    违约责任
    */
    
    public Map liabilityContract() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_lbreakduty=mapper.s_lbreakduty(params);
        result.put("s_lbreakduty", s_lbreakduty);
        
        
        
        return result;
    }
    /**
    其他要求
    */
    
    public Map otherRequirements() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_demand=mapper.s_demand(params);
        result.put("s_demand", s_demand);
        
        
        
        return result;
    }
    /**
    价格体系修改
    */
    
    public Map priceSystemSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        return result;
    }
}